from fastapi import FastAPI
import uvicorn
from config.db_config import db_config
from tortoise.contrib.fastapi import register_tortoise
from apps.api import router

app = FastAPI()
register_tortoise(
    app=app,
    config=db_config,
)

app.include_router(router, prefix="/api", tags=["api"])

if __name__ == '__main__':
    uvicorn.run(app, host="127.0.0.1", port=8000)